package com.perfma.xtest.cmd;

import com.google.common.base.Preconditions;

import java.io.PrintWriter;
import java.io.StringWriter;

/**
 *
 *
 * @author: junhui.si
 * @date: 2024-07-04 10:55
 **/
public class Ex1 {
    public static void main(String[] args) {
        try {
            Preconditions.checkArgument(false, "Hi好粉丝");
        } catch (Exception e) {
            StringWriter sw = new StringWriter();
            PrintWriter pw = new PrintWriter(sw);
            e.printStackTrace(pw);
            System.out.println(sw);
        }
    }
}
